﻿using System;
using EP.Base.BaseService.Manager.Container;
using EP.Base.BaseService.Manager.Interface.Common;

namespace EP.Base.BaseService.Manager.EsServiceTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var serviceSimplifyLog = AppContainer.Resolve<IServiceSimplifyLog>();

            serviceSimplifyLog.ExecSl("服务启动", () =>
            {
                var serviceMonitor = AppContainer.Resolve<IServiceMonitor>();
                serviceMonitor.Register(AppContainer.Resolve<IAutoMonitorService>(Config.EsMaintainTaskConfig.TaskAutoMonitorService));
                serviceMonitor.Start();
            });

            Console.ReadKey();
        }
    }
}
